package homework;

import org.junit.Test;

public class Regextest {
   @Test
    public void test(){
        match("202440550118","[0-9]{12}");
        match("430124200602100010","[0-9]{17}[0-9a-zA-Z]");
    }
public void match(String value,String regex){
    System.out.println("正则:" + regex + ",匹配值:" + value + ",结果" + value.matches(regex));
}

}
